package com.oauth.controller;

import org.apache.tomcat.util.http.parser.Authorization;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ytj
 * @date 2021/12/13
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("/info")
    public Authentication authorization(Authentication authentication){
        return authentication;
    }

}
